import requests

test_url = 'https://api.github.com'


def get_url(url):
    return '/'.join([test_url, url])


def get_user():
    r = requests.get(get_url('user'), auth=('2693588140@qq.com', 'hqq960922..'))
    print(r.status_code)
    print(r.text)
    print(r.request.headers)


get_user()
